﻿<Window x:Class="SimpleCut.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="803"
        xmlns:my="clr-namespace:WpfControlLibrary;assembly=WpfControlLibrary" AllowDrop="False">
    <Grid AllowDrop="False" Background="#FFE8E8E8">
        <Grid.RowDefinitions>
            <RowDefinition Height="50"/>
            <RowDefinition Height="*"/>

        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="309"/>
            <ColumnDefinition Width="312*"/>
        </Grid.ColumnDefinitions>
        <StackPanel
            Orientation="Horizontal" VerticalAlignment="Center">
            <TextBlock>名称：</TextBlock>
            <TextBox Name="txtSizeItemConfigName" Width="60"></TextBox>
            <TextBlock>宽：</TextBlock>
            <TextBox Name="txtSizeItemConfigWidth" Width="30"></TextBox>
            <TextBlock>高：</TextBlock>
            <TextBox Name="txtSizeItemConfigHeight" Width="30"></TextBox>
            <TextBlock>等级：</TextBlock>
            <TextBox Name="txtSizeItemConfigRank" Width="30"></TextBox>
            <Button Name="btnSizeItemConfigAdd" Click="btnSizeItemConfigAdd_Click" AllowDrop="False">添加</Button>
        </StackPanel>
        <ListBox Name="lstSizeItems"
                 Grid.Row="1"
                 Grid.Column="0" HorizontalContentAlignment="Stretch" SelectedIndex="0" SelectionChanged="lstSizeItems_SelectionChanged" />
        <ScrollViewer
            Grid.Row="1"
            Grid.Column="1"
            VerticalScrollBarVisibility="Auto"
            >
            <my:WrapPanelChangePosition
            HorizontalAlignment="Stretch" Margin="0" Name="wrapPanelChangePosition1" VerticalAlignment="Stretch"
            AllowDrop="True" Drop="wrapPanelChangePosition1_Drop" MinWidth="100" MinHeight="100" Background="WhiteSmoke" />
        </ScrollViewer>
        <StackPanel
            Grid.Row="0"
            Grid.Column="1"
            Orientation="Horizontal"
            VerticalAlignment="Center">
            <TextBlock  Height="23" HorizontalAlignment="Left"  Name="textBlock1" Text="前缀：" VerticalAlignment="Top" />
            <TextBox  Height="23" HorizontalAlignment="Left" Name="txtPrefix" VerticalAlignment="Top" Width="61" Text="照片" />
            <TextBlock  Height="23" HorizontalAlignment="Left"  Name="textBlock2" Text="编号规则：" VerticalAlignment="Top" />
            <TextBox  Height="23" HorizontalAlignment="Left"  Name="txtIndexFormat" VerticalAlignment="Top" Width="84" Text="{}{0:d3}" />
            <Button Content="裁剪保存" Height="23" Name="btnCut" Width="75" Click="btnCut_Click" Grid.Column="1"  />
        </StackPanel>
    </Grid>
</Window>
